package com.example.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 数据传输对象
 */
@Data
public class EnrollCourseDto implements Serializable {

    private Integer userId; //报名用户id
    private String userName; //报名姓名
    private Integer gradeLevel; //报名用户年级
    private Integer userClass; //报名用户班级
    private Integer courseId; //报名课程id
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime enrollJoinTime; //加入时间
    private String userMobile; //报名手机号
    private Integer addOrdelete; //报名还是退订,1代表报名，-1代表退订
    private Integer studentId; //学生id
    private Integer categoryId;  //课程类别id
    private String courseName;  //课程名称
    private Integer courseStatus; //课程状态
    private Integer courseNumber; //课程容纳人数
    private String courseTime; //上课时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime courseStartTime; //报名起始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime courseEndTime; //报名结束时间
    private String location;  //上课地点
    private String courseDescription; //课程描述
    private String instructors; //上课老师
    private String courseImagepath; // 图片路径
    private String userAdd; //报名的校区
    //已报人数
    private Integer signNum;


}
